<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="me.wlc.wx.common.AccessTokenInfo" %>
<%@ page import="me.wlc.wx.util.MessageHandlerUtil" %>
<%@ page import="javax.servlet.http.HttpServletRequest" %>
<%@ page import="java.util.Map" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>测试调用微信JSSDK</title>

<script src="js/jquery-3.1.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="http://res.wx.qq.com/open/js/jweixin-1.1.0.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript">
		
		wx.config({
		    debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来，若要查看传入的参数，可以在pc端打开，参数信息会通过log打出，仅在pc端时才会打印。
		    appId: 'wxee1145cbf957b295', // 必填，公众号的唯一标识
		    timestamp: '', // 必填，生成签名的时间戳
		    nonceStr: '', // 必填，生成签名的随机串
		    signature: '',// 必填，签名，见附录1
		    jsApiList: [] // 必填，需要使用的JS接口列表，所有JS接口列表见附录2
		});

</script>

</head>
<body>

        微信学习
    <hr/>
    access_token为：<%=AccessTokenInfo.accessToken.getAccessToken()%>
    
    <%-- <%
    HttpServletRequest httpServletRequest = (HttpServletRequest) request;
    Map<String,String> map = MessageHandlerUtil.parseXml(httpServletRequest);
    System.out.print(map.isEmpty());
    %> --%>
    
    
    <a href='https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxee1145cbf957b295&redirect_uri=http://whoami.s1.natapp.cc/wechat/oauth2.jsp&response_type=code&scope=snsapi_base&state=123#wechat_redirect'></a>
    
    
</body>
</html>